package com.eastfair.matching.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.eastfair.boot.request.PageParams;
import com.eastfair.pay.dto.ServiceContractPageQuery;
import com.eastfair.pay.dto.ServiceContractSaveDTO;
import com.eastfair.pay.dto.ServiceContractUpdateDTO;
import com.eastfair.pay.vo.ServiceContractVO;

import java.util.List;

/**
 * @Author lyw
 * @Date 2022/7/29 11:51
 */

public interface ContractService {

    Boolean saveContract(ServiceContractSaveDTO serviceContractSaveDTO);

    Boolean updateContract(ServiceContractUpdateDTO serviceContractUpdateDTO);

    Boolean deleteContract(List<Long> ids);

    Page<ServiceContractVO> queryPage(PageParams<ServiceContractPageQuery> params);

    ServiceContractVO getContractById(Long id);
}
